//
//  Category.m
//  tuangou
//
//  Created by quan jimmy on 11-11-26.
//  Copyright 2011年 tencent. All rights reserved.
//

#import "Category.h"


@implementation Category
@synthesize id,name;
- (id)initWithDict:(NSDictionary *)dict {
    self = [super init];
    if (self) {
        if (![dict isKindOfClass:[NSString class]]) {
            self.id = [[dict objectForKey:@"id"] intValue];
            self.name = [dict objectForKey:@"name"];
        }
    }
    
    return self;
}
@end
